package com.qf.job;

import org.apache.shardingsphere.elasticjob.api.ShardingContext;
import org.apache.shardingsphere.elasticjob.simple.job.SimpleJob;
import org.springframework.stereotype.Component;

/**
 * 分布式任务调度 :
 *      自定义业务中执行的任务内容
 * @author zhaojian
 */
@Component//注册到spring容器当中
public class MyJob implements SimpleJob {

    @Override
    public void execute(ShardingContext context) {
        System.out.println("==============");
        }
    }
